<?php
/*
    To add new style create new subdirectory in styles directory.
    Style file should be named style.css
    In all language files add style name
    In array below add new entry in format:
    'style_directory_name' => 'style_name_from_language_files' 
*/
    $array = array(
    /* folder    => LND_TEXT */
    'light'    =>  'STYLE_LIGHT',
    'dark'    =>  'STYLE_DARK'
    );
    
    echo '<form name="style_form" method="POST" class="style_form">
        <table class="fill">
            <th class="half right">'.$lang["STYLE"].':</th>
                <td class="half">
                    <select class="fill" name="style" onchange="document.style_form.submit()">';
    foreach($array as $key => $value) {
        echo '<option value="'.$key.'"'.($key == $styl?" selected": "").'>'.$lang[$value].'</option>';
    } 
    echo '</select></td></table></form>';
?>
